package com.ruoyi.service.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.service.mapper.ServicePackagescomboMapper;
import com.ruoyi.service.domain.ServicePackagescombo;
import com.ruoyi.service.service.IServicePackagescomboService;

/**
 * 服务套餐与耗材包对照Service业务层处理
 * 
 * @author ZDL
 * @date 2024-10-21
 */
@Service
public class ServicePackagescomboServiceImpl implements IServicePackagescomboService 
{
    @Autowired
    private ServicePackagescomboMapper servicePackagescomboMapper;

    /**
     * 查询服务套餐与耗材包对照
     * 
     * @param packagescomboId 服务套餐与耗材包对照主键
     * @return 服务套餐与耗材包对照
     */
    @Override
    public ServicePackagescombo selectServicePackagescomboByPackagescomboId(Long packagescomboId)
    {
        return servicePackagescomboMapper.selectServicePackagescomboByPackagescomboId(packagescomboId);
    }

    /**
     * 查询服务套餐与耗材包对照列表
     * 
     * @param servicePackagescombo 服务套餐与耗材包对照
     * @return 服务套餐与耗材包对照
     */
    @Override
    public List<ServicePackagescombo> selectServicePackagescomboList(ServicePackagescombo servicePackagescombo)
    {
        return servicePackagescomboMapper.selectServicePackagescomboList(servicePackagescombo);
    }

    /**
     * 新增服务套餐与耗材包对照
     * 
     * @param servicePackagescombo 服务套餐与耗材包对照
     * @return 结果
     */
    @Override
    public int insertServicePackagescombo(ServicePackagescombo servicePackagescombo)
    {
        return servicePackagescomboMapper.insertServicePackagescombo(servicePackagescombo);
    }

    /**
     * 修改服务套餐与耗材包对照
     * 
     * @param servicePackagescombo 服务套餐与耗材包对照
     * @return 结果
     */
    @Override
    public int updateServicePackagescombo(ServicePackagescombo servicePackagescombo)
    {
        return servicePackagescomboMapper.updateServicePackagescombo(servicePackagescombo);
    }

    /**
     * 批量删除服务套餐与耗材包对照
     * 
     * @param packagescomboIds 需要删除的服务套餐与耗材包对照主键
     * @return 结果
     */
    @Override
    public int deleteServicePackagescomboByPackagescomboIds(Long[] packagescomboIds)
    {
        return servicePackagescomboMapper.deleteServicePackagescomboByPackagescomboIds(packagescomboIds);
    }

    /**
     * 删除服务套餐与耗材包对照信息
     * 
     * @param packagescomboId 服务套餐与耗材包对照主键
     * @return 结果
     */
    @Override
    public int deleteServicePackagescomboByPackagescomboId(Long packagescomboId)
    {
        return servicePackagescomboMapper.deleteServicePackagescomboByPackagescomboId(packagescomboId);
    }
}
